const path = require('path')

module.exports = {
  mode: 'production',
  entry: './src/index.js',
  target: ['web', 'es5'],
  output: {
    path: path.resolve(__dirname, '../lib'),
    filename: 'index.js',
    library: {
      name: 'rc2plugin',
      type: 'umd'
    },
    globalObject: 'this'
  }

  // devtool: 'eval-source-map'
}
